<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
     <meta content="telephone=no" name="format-detection" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable = no"/>
    <title>浏览量-{$webseting.web_title}</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
</head>
<body id="body">
       <!--绑定头部-->    
 <include file="Public/binding_head"/>
    <!--绑定头部-->

    <header id="header" class="u-header clearfix">
        <div class="u-hd-left f-left">
            <a href="{:U('wap/member/index')}" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
        </div>
        <div class="u-hd-tit"><span>浏览量</span></div>
    </header>
    <div class="common-wrapper">
        <div class="f-nei">
            <ul class="concern-con initHeight more_html">
                <volist name="list" id="vo" >
                <li>
                    <a class="" href="{:U('wap/Goods/goods_detail',array('id'=>$vo['goods_id']))}">
                        <span class="p-img"><img src="{:U('wap/index/get_thumbs',array('auto'=>64))}?img={$vo.goods_img}" alt=""></span>
                        <span class="p-name">{$vo.goods_name}</span>
                        <span class="p-price">
                            <span>￥{$vo.shop_price} <s class="s_price" style="">¥{$vo.market_price}</s></span>
                            
                        </span>
                    </a>
                    <!--<a href="javascript:void(0);" class="btn-grey">取消关注</a>-->
                </li>
                
               </volist> 
               
               
            </ul>
        </div>
    </div>
      <div class="b_q">
        <div class="fm-footer-copyright get_more">
            <ul class="couponIn-list">
                <li>
                        <div class="couponIn-item">
                            <div class="couponIn-item-info">
                                月浏览量：{$data.month_page_view}
                            </div>
                        </div>
                </li>
                <li>
                        <div class="couponIn-item">
                            <div class="couponIn-item-info">
                                总浏览量：{$data.total_page_view}
                            </div>
                        </div>
                </li>
            </ul>
        </div>
    </div>
    <!--end top-->
   <include file="Public/footer" />
    <!--end 页脚--> 
     <input type="hidden" name="p" value="2" />
 <include file="Public/wap_javascript" />

     <!--微信分享-->    
 <include file="Public/share_weixin" />
  <script type="text/javascript">
   var  binding_is_check=0;// 重复再次弹出 1是 0否
   var  binding_page='collect_share';// //当前页面名称 不可重复
</script>  
         <!--绑定-->    
 <include file="Public/binding_phone"/>
    <!--绑定-->

<script type="text/javascript">
   $(function(){
     $(".get_more").click(function(){
        get_more();
     });

   }); 
   function get_more(){
     var p=$("input[name='p']").val();
           $.ajax({ 
            url: "{:U('wap/collect/index')}",
            type:'post',
            data: {p:p},
            dataType: 'json',
            success: function(data){
              //console.log(data);
               var con=1;
              if(data){
                var option='';
                 $.each(data, function(i, value) {
                //this指向当前元素
                //i表示Array当前下标
                //value表示Array当前元素
                 option=option+'<li>'
            +'<a class="" href="<?php echo U('wap/Goods/goods_detail'); ?>?id='+value.goods_id+'">'
            +'     <span class="p-img">'
            +'     <img src="<?php echo U('wap/index/get_thumbs',array('auto'=>64)); ?>?img='
            +value.goods_img+'" alt=""></span>'
            +'      <span class="p-name">'+value.goods_name+'</span>'
            +'      <span class="p-price">'
            +'            <span>￥'+value.shop_price+'</span>'
            +'       </span>'
            +'    </a>'
//            +'    <a href="javascript:void(0);" class="btn-grey">取消关注</a>'
            +'  </li>';
                    con++;
                 });
                 $('.more_html').append(option);
                 $("input[name='p']").val(parseInt(p)+1);
              }
              if(con<10){
                 $('.get_more').html('无更多数据');
              }
            }
           });
   }
</script>
</body>
</html>